
package com.xdf.whiteaccount.service;
import com.xdf.whiteaccount.utils.Example;
import com.xdf.whiteaccount.entity.FabContractMain;
import java.util.List;

/**
 * @Description : 服务层接口，由代码生成器自动生成
 * @Author : chanchaw
 * @Date : 2023-8-15 10:06:18
 */
public interface FabContractMainService {
    FabContractMain insert(FabContractMain record);

    FabContractMain insertSelective(FabContractMain record);

    List<FabContractMain> multiInsert(List<FabContractMain> list);

    int updateByPrimaryKey(FabContractMain record);

    int updateByPrimaryKeySelective(FabContractMain record);

    // 根据主键删除
    int deleteByPrimaryKey(Long id);
    // 根据主键查询
    FabContractMain selectByPrimaryKey(Long id);
    // 根据主键作废
    int setVoid(Long id);
    // 根据主键删除
    int deleteByPrimaryKey(String client_id);
    // 根据主键查询
    FabContractMain selectByPrimaryKey(String client_id);
    // 根据主键作废
    int setVoid(String client_id);

    List<FabContractMain> selectAll();

    FabContractMain save(FabContractMain record);
    List<FabContractMain> multiSave(List<FabContractMain> list);

    //================= 下面是默认方法 ==================
    default void checkEntityNotNull(FabContractMain record){// 返回true表示合法，可继续
        if(record == null) throw new RuntimeException("无法保存空数据！");
    }

    default FabContractMain fullFill(FabContractMain record){
        return record;
    }

    default void doBeforeInsert(FabContractMain record){}
    default void doAfterInsert(FabContractMain record){}
    List<FabContractMain> selectByExample(Example<FabContractMain> example);
    FabContractMain moveBill(Long id, String moveBillFlag);
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}